import {request} from '@/apis';
import {addPrefix} from '@/utils/helper';
// @ts-ignore
import {type EnvironmentCreditRateParams} from './types';

const prefixUrl = '/ep-query';

const Api = {
  /** 环保装备及技术企业列表 */
  GET_EQUIPMENT: '/getEnvironmentalEquipment',
  /** 环保装备及技术类别筛选项 */
  GET_CLASS_TYPE: '/screen/environmentalEquipmentProfessional',
  /** 环保装备及技术技术领域筛选项 */
  GET_TECHNOLOGY: '/screen/environmentalEquipmentTechnology',
  /** 环责险年度筛选 */
  GET_TAG_YEAR: '//getEquipmentTagYear',
  /** 认定批次筛选 */
  GET_BATCH: '/screen/environmentalEquipmentBatch',
  /** 技术阶段筛选 */
  GET_TECHNOLOGY_TYPE: '/screen/environmentalEquipmentTechnologyType',
};

addPrefix(Api, prefixUrl);

// @ts-ignore
export * from './types';

/** 环保装备及技术列表获取接口 */
export const getEquipment = (params) => request.get({url: Api.GET_EQUIPMENT, params});

/** 环保装备制造规范企业筛选类别接口 */
export const getClassType = () => request.get({url: Api.GET_CLASS_TYPE});

/** 环保装备制造规范企业技术领域筛选类别接口 */
export const getTechnology = () => request.get({url: Api.GET_TECHNOLOGY});

/** 认定批次筛选类别接口 */
export const getBatch = () => request.get({url: Api.GET_BATCH});

/** 技术阶段筛选类别接口 */
export const getTechnologyType = () => request.get({url: Api.GET_TECHNOLOGY_TYPE});

/** 环责险年度筛选接口 */
export const getEquipmentTagYear = (params) => request.get({url: Api.GET_TAG_YEAR, params});


